can someone please help me with the homework 3B on the below site.

www.cs.sunysb.edu/~cse219 specification is under homework3

Am open to ANY suggestions on how to get started. need help with coding.