Pergunta de entrevista da empresa Uber

Some ridiculous question involving integer manipulation