Axon interview question

Triangle identification algorithm