Amazon Interview Question

One question of circular house robber