removind undefined values from givenanswers array