Moody's Interview Question

Complete some functions in c# and jquery