Caterpillar interview question

Using if else condition in column formatting