as per my view..the o/p should be 3 and 4...why u getting 4 4