Publicis Sapient Interview Question

pattern printing-one loop,anagram coding,probability ques.Being from non cs-it branch...they only checked the approach