ACS Solutions Interview Question

One coding question and few other puzzels