Comments

Ya i solved it using first appoach..can you tell me what will be time conplexity of second approach

this question asked in my second round of coding interview of amazon