Uber Interview Question

First Round OA - 4 LC Questions First two very easy. Last two were pretty hard. Second Last question was a leetcode hard of String Manipulation and last question was also similar to a leetcode hard of a graphs question