I'm sorry, but that isn't very good advice... Mollies need at least a 20 gallon tank as some grow to 5/6".
Harlequin tetras need optimum water qualities, and with only a 5 gallon tank, that will be hard to keep up with other fish.
Without any other fish, you could fit 2 platies in, but IMO...