AMC 10B 2019 Problem 12

What is the greatest possible sum of the digits in the base-seven representation of a positive integer less than 2019 ?

Answer Choices
A. 11
B. 14
C. 22
D. 23
E. 27