This is an assignment that MUST be done by yourself. The more you investigate how to solve it by using your own logic, the more prepared will you be to handle the midterm and final (and life). You can certainly ask TAs, CAs, and the instructor for guidance if you get stuck. But getting yourself unstuck is a huge part of being successful in cs105.