Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
What a fortunate thing, that we're in a coding site, not an interview.
If I didn't want to use libraries then I would've coded in C lol.
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.
Good job! I don't know why someone should reinvent the wheel, when there is a tested library, that does exactly that.