OPmobility Interview Question

I was asked to solve some problems