Cognizant interview question

basic aptitudes (profit loss,probability )etc basic program(swap,palindrom)