Publicis Sapient Interview Question

Basic leet code questions like arrays