Triathlon defined as an athletic contest consisting of three different events. Usually, these events are cycling, long-distance running, and swimming.…