Pergunta de entrevista da empresa Bloomberg

I solved 1 coding question which was string to integer atoi but with a couple modifications such as error handling, and edge cases for negative numbers. There was another question but I didn't have time to get to it within the hour.