Moody's interview question

Few logical reasoning questions