Hackerrank problems - Search