A has let out a property to B and B has sub-let that property to C. A has not taken any action against B. A sold the property to one D on 'as is where is basis' and D knew about the sub-letting.
Can D evict B on the ground of sub-letting? Does the right of action devolve upon D from A?