Some interviewbit Solutions whose approach surprises me and it is my short attempt to help other students who can come across these methods too.
try to understand the approach and work on it.
@Credits: many wonderful coders who helped me reach these wonderful approaches.