KLA interview question

First round- online coding round in Hackerrank 2 Questions on Data Structures and problem solving algorithms 1.based on string manipulation 2.based on graphs (type of island question) Time given - 90mins