OA help|| Budget hiring

Can Anyone help me with the code of 2nd Question ,i.e, Budget Hiring question provided in the above link.