To make things clear, I am not an expert on computer science, I am just a student sharing while I am learning these stuffs. And I also…