House robber step-by-step solution