Solve two interview coding problems | Uber Coding Question