Google Coding Interview Question - House Robber