Step 1: Group the three clinical clues into one syndrome.
A young adult presents with (a) flat lesions around the anal canal, (b) a generalised body rash, and (c) patterned hair loss. The task is to find the single condition that explains all three at once, rather than a diagnosis that fits only one.
Step 2: Decode each finding.
• Flat, moist, broad-based lesions near the anus are condylomata lata.
• A widespread, typically non-itchy rash that can extend to the palms and soles is a classic disseminated eruption.
• Patterned, patchy, non-scarring hair loss is the "moth-eaten" alopecia.
Step 3: Identify the unifying disease.
This triad - condylomata lata + a palm-and-sole rash + moth-eaten alopecia - is the textbook picture of secondary syphilis, the disseminated stage of infection with the spirochaete Treponema pallidum that follows the primary chancre.
Step 4: Test the rival options against the full picture.
• Trichotillomania is compulsive hair-pulling; it gives irregular bald areas but produces no anogenital lesions and no body rash.
• Alopecia areata gives smooth, discrete bald patches only - no rash, no anal lesions.
• Malassezia (pityriasis/tinea versicolor) causes scaly hypo- or hyperpigmented trunk macules and does not cause anal condylomata or alopecia.
Only secondary syphilis ties all three features together.
Final answer: The diagnosis is Option 3 - Secondary syphilis.