I\'m currently working on a project for school in which I have a time complexity restriction. I\'m still beginning to learn to program so apologies of this question is stupi