Tech Mahindra Interview Question

Array manipulation, Pattern formation, basic DSA concepts