RECKONING: Reasoning through Dynamic Knowledge Encoding