Question asked in Amazon Interview