Drsam both answers are correct..but our logic is different..:)