Nvidia Interview Problem