Uber interview question

Some ridiculous question involving integer manipulation