what is wrong in this? i m getting right while running but it fails all condition