Tip 1 : Basic should be clear and strong.
Tip 2 : Hands-on must be done perfectly.
Tip 1 : Should be professional
Tip 2 : You must aware about on all the written skills
Tip 1 : Cover DBMS for giving the correct solutions
Tip 2 : Practice regularly to set the questions in your mind






The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?