HP Inc. Interview Question

most complex problem solved