Ad
  • Custom User Avatar

    Sorry to say, that's not accepted in a real interview. Your interviewer has given you the question to check whether you can whether you can solve it without using libraries. They expect you to understand how things work under the hood.