Programming questions
Questions are targeted for 2-5 years of experience but can be tried by beginners also, they may take more time.
Average time to complete the questions ranges from 5 minutes to 12 minutes max.

1 => Write a program to check if there is a comma (,) at the end of a string, and if its present at the end then remove this last comma (,) only from the string, not all the commas. (Program is to be written without using the inbuild Trim() method )
Answer:
2 => Find last n elements from the given array
For input – getLastEelementOfArray(3, [4, 2, 9, –1])
Output should be [2,9,-1], it contains the last 3 elements from the array
5 => Use of Map method
Get employee name in capital from the input array.
6 => Get max salary of the employees
Answer:
9 => Degree between hour and minute hands at any time.
Answer: