Tech Mahindra Interview Question

written was average. it was both technical with aptitute and resoning