Uber interview frontend

I appeared for Uber on Mar 2025.

Screening:
Initial round was an online coding test having two questions, pretty simple.

Round 1:
This was a DS algo round where I was asked to find the next largest palindrome, given a number.

Round 2:
I was given an implementation of a faulty setTimeout, something like:

let actualSetTimeout = setTimeout; let timer; setTimeout = function(callback, timer) => { clearTimer(timer); actualSetTimeout(callback, timer); }

Using this faulty setTimeout, I had to implement the actual setTimeout.

Was not familiar with this back then, ended up bombing it but it was a good experience on asynchronous JS programming.