• + 1 comment

    the logic is correct but you wont pass the test cases since u print the outcome of the search right after the user inserts the name , not after the user inserts all the names hes searching for , correct me if im wrong