Explanation
At work you say 「お{疲|つか}れさまでした」 (thanks for your hard work) to someone who has just finished. 「おじゃまします」 is for entering someone’s home, 「いってらっしゃい」 sees someone off, and 「おめでとうございます」 is congratulations. Tip: picture the situation (who, where, what just happened) before reading the options.
Words in this questionお疲れ様|おつかれさま