Uber interview question

Questions on arrays and string manipulation