not getting the correct output of the code. kindly suggest me what should I do to get the output correct