Write a function to calculate the length of the given list? function solve( a ){ //write your code here } Login to Submit
Input: [1, 2] Output: 2 Input: [1, 2, 3] Output: 3