PureLogics interview question

simple questions simple logic building questions