I took this test last month. Nobody is pointing this out but this is test is here because Amazon is either lazy or don't care enough to create tests. They reuse every single programming question in their interviews, online tests and group assessments. This leads to high chances of people simply copying readymade solution. The solution, it looks like, is to spy on everything you do. It was pretty intrusive. The proctor closed all my tabs on all windows, all the notepad/sticky notes, all windows, and background processes. (of course people can just 'remember' solutions, but then they are also getting fired is not too hard. )