Goldman Sachs Interview Question

Some basic coding, some questions based on my aptitude results and then some complex coding regarding complexity of the program.