Uber Interview Question

Some ridiculous question involving integer manipulation